Fixed compilation problem with libevent. Does not really work.