Add the solevent library for handling non-blocking events.
Note that this update now requires the libevent library for compilation.