Fix GCC warnings about using C++11 features when not in C++11 mode.