....I..... [ZBX-8658] improve AC_CHECK_LIB for libodbc

Without specifying a function from the lib itself to check is useless.

Also this commit sets LDFLAGS and CPPFLAGS separately when checking
for SQLite function sqlite3_open_v2().