Setting CXX_FLAGS would cause build to fail