Workaround a few IE10 oddities