fix type conversion in libuv.h