Sundry fixes for IE11, 10 and 9.