Seriously disable shared library for sqlite

And ensure static one is compiled.