A few build fixes for the unit tests

Tony Finch requested to merge fanf-tests-build-deps into main

A number of places needed to be told where to find their libraries, so that make check works with Homebrew on my Mac.

Merge request reports