Fix linking libraries in wrong variant

Removing duplicates in the list of linked libraries in CMake removed
configuration decorators as well