configure: Conditionalize WAYLAND_SCANNER too

It seems we forgot this.