fix a error when compile with g++ < 4.8.2