[Touchpad KCM] Fix libinput-less build and warnings

Authored by romangg on May 14 2019, 8:33 PM.

Description

[Touchpad KCM] Fix libinput-less build and warnings

Summary:
If the X.Org libinput dev packages are not found, do not
build the X11 libinput backend. This way the build succeeds.

Fix also some minor warnings.

Reviewers: Plasma, davidedmundson

Reviewed By: Plasma, davidedmundson

Subscribers: plasma-devel

Tags: Plasma

Differential Revision: https://phabricator.kde.org/D21220