libuv fixes

Hi!

This looks great, I'm really looking forward the Python bindings :-) In the meantime, here are a few small fixes to the libuv integration extension.

Cheers,