Add better detection for SpiderMonkey - the 'gc' function gets killed by Emscripten.