Fixed check target dependencies

Fixed "check" (ctest) target dependencies; without this changes, a
direct build on that target didn't fire up the actual libcf build.
Fixed missing dependencies on MD generation files

Fixed missing dependencies on MD generation files that prevented the
correct execution of generator binaries.
Added default build configuration

When no CMAKE_BUILD_TYPE is specified, the root's CMakeLists will set
its value to a default (currently set to "Release").