Add setImmediate shim for 0.8 compatibility.