Hello.
Hum, in those cases of doubt i use dynlyb.loadlib() before to call anything...
DynLibs.LoadLibrary('/dir_of/libsqlite3.so');
[EDIT] I do not know when fpc is searching for the libraries path, hope that if DynLibs.LoadLibrary() runs at begin of program, it is this one that is used.