fix patch miss in kex.c
Makefile fix
more patch cleanup