Default to $stdout and allow an IO injection.