add compile time sqlite version checks around sqlite functions

`sqlite3_open_v2()` and `sqlite3_prepare_v2()` for people with older versions of sqlite