Clean up CMakeLists.txt link flags.