Update podspec for OS X, add platform specific code