[osx] fixes