Fix gitignore and buildscript