Fixes for setImmediate in IE8/9.