Support Different versions of C++ flags