pass regtest with C++11 and gcc 4.7