Okay, that did work. But shouldn't it call pkg-config, so I don't need to set the flags manually?
I mean, I'm running this in my user's home, in a computer which I don't have root access, and I used Linuxbrew (https://github.com/Linuxbrew/brew) for this, and installed libbz2 headers, openssl headers, pkg-config, sqlite3 headers and all worked but finding the sqlite3 headers.
Just fyi, when I run pkg-config --cflags sqlite3 this is what I get:
-I/home/sacastro/.linuxbrew/Cellar/sqlite/3.14.1/include
which is ok.