com/instance.c: Attempt to fix localization of shared libraries on FreeBSD