Fix compatibility with older versions of libarchive.