Fixed issues related to node 0.10 and process.nextTick now correctly using setImmediate where needed on node 0.10