Work on shared_ptrs.
Add SpaceSharedPtr for gcc.
Revert a change in Adapt::Adapt due to Agros.