add some win32 compatibility