Update .pro/.pri files for handling of plugins/libraries dependencies

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