fixed build errors for x64 architecture