added patch for win32 build