Use setImmediate in Node.js 0.10 to avoid warnings