TESTS: added FreeBSD support for dylib tests.
Merge pull request #890 from qtxie/dylib-FreeBSD

TESTS: added FreeBSD support for dylib tests.