Various fixes

Here's Vladimir! :)

Someone with a better understanding of Vibe threading/internals should have a look at a proper fix of TCPListenOptions.distribute in libevent2.