Fix linker errors about missing Win32 APIs