fix dmg build on OS X.