some osx fixes