Added patch for compiling on win32 platform.