added win32 support