prepare for libuv integration