audit: check for missing xz build-time dep

Closes #17565.