Use AC_CHECK_LIB to avoid populating LIBS with -lsqlite3
Merge branch 'feature/autotools' into release/3.0

This allows to avoid linking unecessarily with -lsqlite3.