Fix compilation error of Wayland_Util.h

Remove unneeded #endif to fix the following error: #endif without #if
This compilation error occurs when Wayland support is enabled.