Fix compile warnings on gcc 4.8.2 c++11 mode