Fix build without xkbcommon

Change-Id: If6f0c5e14cea659a42dc0ba10c05356a5703ba14
Reviewed-by: Jørgen Lind <jorgen.lind@digia.com>