Added check for setImmediate in node 0.10.x