The libHBAAPI.so has a library dependency on libdl.so because of the "dlopen" function call it makes. However, the makefile.unix has the "-ldl" linker option in hbatest.c not libhbaapi.so. Here is a copy of the relevant lines in the makefile:
hbatest: hbaapi.h
${CC} hbatest.c -ldl -o hbatest
libHBAAPI.so: HBAAPILIB.c hbaapi.h vendorhbaapi.h
${VERS}
${CC} HBAAPILIB.c version.o...