All the changes needed to build on OSX.

Provides OSX CI-based distribution building and uploading.
Is this OSX-specific? If so could we pin on this only for OSX?