fix for win32 cross compile