Updates for automated build support for osx.

make sure the old zip is gone first, choose the best compression
mode (slower but smaller file) by default.