Use SQLite 3.7.17 which fixes a ASan failure at startup.

Fixes #2194.

I'm not sure if this is the best thing to do. Maybe we should be using the bundled system libsqlite3 instead?