CMake fix for find_optional_package