Don't use EV_CLEAR when registering interrupter.

Fixes copy/paste error introduced in 3f473548a7d71012a77cd256a61034a505696958.
Fix shadow variable warning.
Avoid using newly-deprecated Winsock functions.
Unit test workaround for AIX.