patch for windows - issue #50