make it work with older versions of libarchive