Node.js 0.10 support

I've fixed errors that appeared with node.js 0.10. I also updated dependencies.