Add support for GOutputStream