Modify CMakeLists.txt to error if required headers cannot be found