Fix compilation warning
Enable c++11