closed #4904: fix ios Image::saveToFile crashes when save jpg file.

1. fix ios Image::saveToFile crashes when save jpg file.
2. use new Xcode command line tools to compile i386 arch to shrink the libjpeg.a file (2.8M->2.0M).