Fix library name detection on FreeBSD/PC-BSD.

Related to mazkolain/spotimc#105.
Merge commit '1a69cc0'