Correct overwriting of CMAKE_CXX_FLAGS