Fixing compilation errors in C++11 mode.