Fix #3935

See libuv commit.