Add a compatibility shim for working with libevent on MSVC