Fix compile error when c++11 is disabled