Adds compatibility with SQLite < 3.7.11