Add support for ostreams