Fix build issues and update the .gitignore file.