configure: use --with-shared-sqlite instead of --enable-shared-sqlite
configure: fix linking with shared sqlite on *BSD