Add gitignore file
Fix build with GHC >= 7.7 (base 4.7)
Ignore dist directory