Add a deployment to github releases.
Fix OS X build warnings.