Modify windows platform code to support x86_64 compilation