Fix compatibility with Node.js below v0.10