Fix build when wayland support is enabled