Rework convenience library handling on CMake.