Fixes for IE9 compatibility.