[cleanup] Replace dune_static_assert and Dune::shared_ptr.

Use the C++11 replacements instead.