Replaced libev by libuv

libuv has a cleaner API and is more complete than libev, not to mention it works
on windows