Fixup build 

Using frameworks on OSX and using minima's settings for linux's SDl2

Also sneak in a type-safety fix in kbd.c