set the C++ version depending on the GCC version