Takes an I/O stream and gzips it. Optional argument specifying compression level: 1-9, default, fast