Switch to TARGET_ defines like xbmc
makefile_hack
fix precedence of expression
Add support for hex numbers in keymap for unusual keys