Set shared library path on FreeBSD as on Linux for tests