Update .gitignore and add build directory.