Point to libevent libraries.
Fix signed/unsigned comparisons.
Use static_cast.
Add FIXME.