Various IE9 and IE10 fixes