Fix RecDependencies.cmake
!2637 (merged) includes a change to cmake/RecDependencies.cmake
that does not harm in the normal build of Rec, but it is not strictly correct and fails when Rec is built as part of a super-project.
This MR fixes that problem plus a couple of incorrect dependencies between targets.