Fix compatibility for OS X Maverics.

`NSButton.controlSize` and `NSString.containsString()` introduced at OS X 10.10.