Sorry but I saw this error when I tried your patches:
OBJC ui/cocoa.o
CC ui/curses.o
ui/input-keymap.c:17:10: fatal error: 'ui/input-keymap-qcode-to-sun.c' file not
found
#include "ui/input-keymap-qcode-to-sun.c"
^
1 error generated.
make: *** [ui/input-keymap.o] Error 1
make: *** Waiting for unfinished jobs....I could not find this file.
