Some build, .gitignore and project fixes