Fix Node 0.8 failures

Node 0.8 doesn't have setImmediate.
You probably want to make the changes yourself since there's only 4 lines. If not, let me know and I'll see if I can squash the commits and force push.