contrib/libarchive: Import libarchive 3.5.1
(cherry picked from commit 69a18c5826c9633a6d77e18f9f34e02c83d22717)