Restricting linkage order for older versions of CMake