added LIBS_DL when linking local sqlite3 version