Add missing links to work with new CMake configuration
The more strict link policy of the new CMake configuration of projects requires that downstream projects link against libraries that were used implicitly before.
This change is strictly backward compatible.
/cc @rmatev