Fix compilation with GHC 7.x
Add .gitignore