Do not include a plugin header from a library.
Merge pull request #3342 from ktf/fix-photos-interface

Misc fix -- Do not include a plugin header from a library.