All the changes needed to build on OSX.

Provides OSX CI-based distribution building and uploading.
Looks like we need to specify the include directory to pick up the correct jpeglib.h. Ping @esc24