link against libs needed for unit tests with check