Removed all uses of non-synchronized ostreams.