Fixed build issue when using --with-sqlite3 option