Updated build settings and added tmp to gitignore