wayland: improve build check