Fix some C++11 compiler warnings using gcc 4.8