Fix the PETSc callbacks for the case where we are compiling without PETSc.
Fix the PETSc callbacks for the case where we are compiling without PETSc.

live-clones/libadjoint,live-clones/libadjoint,live-clones/libadjoint,live-clones/libadjoint