Add a convenience constructor when redirecting streams.