Improve event processing in Windows.
Replace wget with libcurl.