Fix CocoaPods build

This should fix #467.

If you're happy with this, could you add a tag for 0.8, and I'll push it upstream to the CocoaPods specs repo?

Thanks!