Remove an unneeded include (and fix a warning while we're at it)
Fixes Windows CI build in
https://build.kde.org/job/Frameworks%20knewstuff%20kf5-qt5%20WindowsMSVCQt5.11/7/console
due to unistd.h not existing on Windows (and us not actually using
the function the include was supposed to be there for)