fix deprecation warning with libarchive 3.1.2

when compiling with libarchive 3.1.2 in Arch Linux a deprecation warning for archive_write_finish stopped the compilation