correct C++ flags