Enable c++11 for g++ < 4.7