adapt to https://github.com/joyent/libuv/commit/5c675c4a4e4d7931104900aeb56827e030d84fa9