minor cmake fix fo macos