Fix CMake find checks