Fixed an incorrect reference to output stream on windows system.