Update gitignores to exclude build files
Fix to build on Ubuntu 12.10