Fixed build error when using petsc without parallel mode.