Building Dune as shared libraries

Closes #116
Closes #114
Using main cookoff branch