compile with libuv 1.x

Error handling is not complete, as it needs some more changes, but it is functional and compiling.