Using system check framework when available, with fallback in case of problems to the embedded one

Conflicts:
	tests/CMakeLists.txt