fix libffi patch, add CMake build dep for METIS 5.1.0