Changed building of JNI test lib on Darwin to build 32/64-bit shared lib for
macosx and 32/64-bit static lib for iOS.