Revert "Try to support PETSc 3.5.0 (in dev)."

This reverts commit 37a16a11afe9ab233cd80827993b5142e052dbf6.

Changes in the reverted commit seem to cause compilation issues. Once
petsc4py and TAO support PETSc 3.5 we should give this another try.