Fix compile problems with gcc4.2
Add non-code files to .gitignore
Fix segfault in defining unarmed styles