Initial fixes for IE8 support