fix the compile error with gcc4.8.x