Fix the CMake file to find the dependencies on case-sensitive systems