small fixes for libuv