SERVER-8040 Fix SpiderMonkey compile