Updated for libuv changes in node 0.10

Updates to work with node 0.10, adding casts to reflect changes in callback prototypes in libuv and updating the dependencies.