Simplify CMake code regarding library names

This makes KDevelop happy, too

Change-Id: I2943d032ba2831550f6d7c1ce277bd680ec6a946