make it work on both x86 and x64