Removed duplication between ZipArchiveOutputStream and StreamCompressor

All tests pass, but this commit needs a long hard look before pushing to
ASF