try supporting environment without libarchive.