kpatch: remove dead build code