fixed iphone/osx check for macos sdk >=10.6