Add Mac OSX build, fix keyboard focus for some hosts