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 brake it on other systems and also, I hope I did not forget anything.
Thanks.
Best regards, Clemens