[libsqlite] add some tweaks to work with sqlite 3.6.x