Fix build with clang on 8.3

This explicitly links to libarchive since libarchive is explicitly
called
Link against all needed libaries since binutils may not recursively add them