XWIKI-6903: Office preview fails for PDF attachments

 - Fix the build. Please Marius review this.
XWIKI-8944: Use the bridge to the new security authorization component as the default RightService