Flush stdout when printing.