Fixes for IE8 (it doesn't support console).