Fixed OS X build when using cocoapods.

You can now use default cocoapods version and it'll build properly for both iOS and OS X targets.