add Darwin support in build script for igzip