Add support for the internal LXDE polkit agent.

Closes #6043.