tweak build script iOS and Mac OS X operation