Fixed spec issues between iOS and OSX for UIKit categories