Fix issues that were observed with newer JavascriptCore.