Add non-source code files to .gitignore
Fix compile issues with gcc 4.2