fix warnings if some want to use c++11