Separate UIKit-dependent code, make podspec OS X compatible