Some OSX fixes

hi