Fix a copy-over error
Add gitignore and fix 4.8 compatibility