instance.c: Proper fix for localizing shared libraries on FreeBSD 9