math: #ifdef around some PETSc variables available only in late versions