minor OSX fixes