import Jimmy Zhuo's work on making libuv an APR replacement