Fix sqlite3 build on Ubuntu

Merged Simon Morlat requested to merge fix/fix_ubuntu_build into master

Merge request reports