Fix build problem in C++11