Build PETSc with shared libraries.