Tweak buildscripts for latest libarchive changes