add some osx-specific code
add dmg bundle to build