Updated gitignore
Fixed not building when cmake is run out-of-source
Fixed build issues when building out-of-source
Fixed build issues when building out-of-source