Fix C++11 compiler error