Fixes for Windows and latest libuv