minimal change of libuv for p2p networking