Fix compilation on Linux
cmake: set CXX_FLAGS for Debug and Release builds
Add build/ to gitignore