work around lack of sqlite3_next_stmt on Mac OS X 10.5.*