Modified gitignores to include some necessary folders

These folders are all required at one point or another in the build
process and should be included in the repository.