port some fixes from Commons Compress
3 files changed