Fix for command line utility when OS X terminal truncates visible output.
Added a workaround for issue #41 (stream_set_blocking not working with php://stdin on Windows)