Improve compatibility with IE11

With these changes, a hypothetical future version of IE11 might be able to run all of the Sandcastle examples correctly.