mac osx fixes