add c++11 support for gnu compilers