Configure fix for recent versions of PETSc.