Fixed #4749: Fix spidermonkey arm64 and x86_64(simulator) build issue