Fix build for template-haskell >= 2.4.0 && < 2.8.0
Add a .gitignore