Allow overriding stdout to not go to a pipe.