Fix broken libuv usage, add acceptor code.