Compilation and gitignore fixes