Updated for libuv changes in node 0.10
Merge pull request #125 from tomhughes/node10

Updated for libuv changes in node 0.10