Add release build and fix gitignore.