Update against KF6 and wlroots master branches
Incorporate changes from KWin as specified by #323 (closed), #326 (closed) to make it build against current KF6 master branches and fix build against wlroots master. Also fixes some bugs.
Closes #322 (closed), #323 (closed), #327 (closed)