Perhaps older CMake versions transitively linked them? It should not hurt to explicitly link to them.