When building from source please have a look at the INSTALL(.md) files shipped with each source package where the prerequisites are listed. If you check the INSTALL.md of the gvmd you can see that you need to install the sqlite3 developement packages, the sqlite3 binary is not enough: