PATCH: Backport from v22.

Compiles on 32-bit non-JIT enabled platforms.

Original patch:
https://hg.mozilla.org/mozilla-central/rev/489ab986ea69

Discussion:
https://bugzilla.mozilla.org/show_bug.cgi?id=846986
build.sh for iOS

Simulator first, then device