apply Raffaele's logfile patch for windows.