Fixed compatibility for Node.js 0.8.x