do not wait stdout flushing on platform where it is not needed

the wait for drain is not 100% working either..