Disables compiler warnings in SpiderMonkey headers for Visual Studio

Also fixes a real issue in our code that was pointed out by warnings.