The Forum and Library are both optional features that admins can choose to enable or disable. By default, both will be turned on for new accounts.
To turn off these modules, go into "Settings" and "Account Info." You can then toggle Forum and/or Library to "No." Be sure to click "Update Account Info" to save these changes.