fix cross-platform code changes that depend on Mac version