All the changes needed to build on OSX.

Provides OSX CI-based distribution building and uploading.
OSX-specific?