Use <tevent.h> so the system tevent gets included, if enabled.