add compatibility to Node.js 0.10.x