Fixes for IE < 9 #30.