Improved print performance on windows

Original console output performance was very poor, this change improves it rapidly.
Tested with this command:

`loop 10000 [print "0000000000000000000000000000000000000000000000000000000000000"]`