xz: Add missing code from xz patch