configure: Don't link unneeded libs into cockpit-bridge

Closes #1558
Reviewed-by: Marius Vollmer <marius.vollmer@redhat.com>