working on some win32 portability