Added support for packaging as .dmg on OS X.