make it compile with gcc 4.6