Replace libev with a separate opcsink thread, for win32 compatibility