Fixup build for OSX with frameworks and use minima's settings for linux's SDl2

Also sneak in a type-safety fix in kbd.c