Fix PETSc 3.5 warnings