IE8 fixes (should work with next mithril release)