Fix compilation issues on x64