Snapshot of upstream SQLite 3.8.0