Limit the Objective-C check to OS X.