libxklavier: fix not finding xkbcomp (fixes #3173)

Also refactor the expression a bit,
and add description+license.