sqlite3: fix the case when libsqlite3 is a symlink

Signed-off-by: Adrian Negreanu <adrian.m.negreanu@intel.com>