fixed build for wayland backend. Avoid including X11 headers

/usr/include/EGL/eglplatform.h:118:22: fatal error: X11/Xlib.h: No such file or directory

Before including <EGL/egl.h> correct egl platform should be defined. Added include for wayland case.

Signed-off-by: Andriy Prystupa <andriy.prystupa@globallogic.com>