Fixed output buffering on Cygwin