petsc-3.4 support

Update version check and support new (simplified) `DMRegister` interface.