add compile time sqlite version checks around calls to sqlite3_open_v2() and sqlite3_prepare_v2()