Replaces deprecated call to wl_display_add_global() by wl_global_create()
Removes some unused code
Includes eventsource.h in wl-utils.c