Fix compilation warning + C++11 error.