OSX fixes
Merge branch 'master' of https://github.com/byss/KBAPISupport