Fix plugins link dependencies

Change-Id: I5a02aa759fafa88eeb58e6c2d9b5d800a18e8fa4
Reviewed-by: Sandro S. Andrade <sandroandrade@kde.org>