CMake: Adjust internal target names when LIB_SUFFIX is specified.

Fixes #712.