CMake library linking setup