Backport libuv patch 17452cd0e2327c9d929215bbeabfd79d60f3ca4c to older version of libuv