Fix compile with gcc4.7