SERVER-8414/SERVER-8429 Fix SpiderMonkey compile