OS X support

For crossplatform projects. Works on both UIKit and AppKit.