Link unit test against shared library.