Enable C++11 flag only for GCC >= 4.7.