Fix the build and update gitignore