cmake lists detects gcc 4.6 and uses c++0x flag instead of c++11