Small patches for newer libuv.