fix 64bit compile with old gcc