libports/libuv: tests from upstream compile and link

fixed missing functions and some typos