Eliminating C++11 warnings