[WIP] IE8 fixes

Miscellaneous IE8 fixes.