Linking to PETSc.