Update build.sh to build iOS and OSX versions