fix c++11 error with g++