Fix build and .gitignore.