--> ARRAY_LENGTH macro exists no more in wayland, thus added macro
--> WL_DISPLAY_* is renamed to WL_EVENT* long back