Fixed compatibility with Node.js 0.8.x