better handling of UV_FILE as uv_pipe_t object in libuv, for #2162