Fixed C++11 GCC warnings