Fix compiler switch for libarchive