Dune to build from pre-installs as well as lookup

Closes #169

Also makes dependency on external libraries more explicit in exported package.