Fix compilation on OS X.
Add OS X support to Podspec.