Fix compilation with gcc 4.6 in C++11 mode