Remove CMake headercheck code
The headercheck reimplementation in CMake is something that has never really worked and it is not worth the additional lines of code in CMakeLists.txt. I believe these files should look as simple as possible when looking at them!