Rework the podspec

Switch to building from source to better match how CocoaPods wants to work and
reduce the required download size, and add a subspec with only the headers to
work around the issues with overlinking the libraries in unit tests.

Closes #690.

@alazier 
There's no / in front of tmp.