patch for support c++11 with g++ 4.7