CMake: Fixed mismatching library vs app builds.