Change event_dispatcher.hpp include order
Make event_dispatcher thread safe