Misc fixes for IE8. Pending test fixes.