explicitly link dependencies into the shared library

Fixes cpp-netlib/cpp-netlib#317 but only for the 0.10-devel libraries; you may need to make similar changes to the other branches for other libraries.