Fixed compatibility with Node JS v0.8.x