win32 fix via @phated