Add @davidlt's fixes to autotools to make xz work in slc5