Fix c++11 compiling.