Fix deprecated warnings with libarchive 3.x