Fix build files to not require empty directories.

A couple of the build files required empty directories to be present
for the build.  Commented out the relevant parts so that the git
checkout works without having to create these.
Add .gitignore file.