port to win64
fix gcc O2 warning