libxklavier: fix not finding xkbcomp (fixes #3173)

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

(cherry picked from commit 45ad92276370615f17df6f4346d479ae502062e5)