Use AC_CHECK_LIB to avoid populating LIBS with -lsqlite3