Bug 850070 - Fix --disable-ion and --disable-threadsafe builds. r=red