Fixed curl example

Hi! Finally, I had time to try your suggestion. I did it according to the libuv poll test.
But see for yourself, it works on Windows, I hope I didn't break it on other systems and also, I hope I did not forget anything.
Thanks.
Best regards, Clemens