Remove unneeded flags from top level CMakeLists
Silence secure warnings on MSVC
Add build files to .gitignore