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
Merge pull request #25 from mccoyst/master

Fixup build