Created attachment 6982 Fix the build Compilation without polkit fails because of a too soon closed #if clause. The attached patch fixes the build.
Created attachment 6983 Fix the build V2 I was too quick with the first patch. The screensaver object is not tied to polkit and should be freed in all cases.
Thanks! Pushed to master in: commit 6a59c945b5b4dc7e7581616c9375c6e8d7a73d20 Author: flo <flo.xfce@gmx-topmail.de> Date: Sat Mar 4 05:19:05 2017 +0300 Fix building without polkit https://git.xfce.org/xfce/xfce4-session/commit/?id=6a59c945b5b4dc7e7581616c9375c6e8d7a73d20