add patch for windows