worker: fixes for newer libuv