petsc: link with opt paths