ifdef out file-static functions for newer PETSc.

clang warns that these functions are unused...