fix for older libarchives that do not have archive_read/write_free
another fix for systems that do not have archive_read/write_free yet