Call evthreads_use_pthread before creating the event base.