added win32 build compatibility