small osx fixes