Fix CMake for case sensitive filesystems.