[fix] make test libs dependencies of check rule

We need to make util libraries in tests dependencies of the check target
to ensure that they are only built during `make check`. Otherwise
automake will build them during make, and before excit, breaking our
global LDFLAGS for tests will break since excit is not built yet.
9 jobs for distcheck-ci in 6 minutes (queued for 1 second)