Fix an error in CMakeLists.txt

Fix the variable that includes the directory for check.h
Now the build works on MacOSX with clang.