Change code with WITH_WAYLAND for Ecore-x/X11 calls.
Signed-off-by: Manuel Bachmann <manuel.bachmann@open.eurogiciel.org>

Change-Id: I1f5f9348437dccb07c75b47dcdf6fccb89e45238