Fixed build on Mac OS X 10.9 and added missing entries to .gitignore