fix win32 compile errors