Using target_link_libraries with 'OBJECT' libraries breaks the build with older CMake versions. This reverts commit 2faa9de7.