Add build configuration and update .gitignore.