Use correct define for x86-64 and only import functions from windows.h when building on Windows.