[RT #84492] mingw32 uses long off_t, but sqlite int64

On mingw32 we cannot use the system off_t for sqlite2, since mingw32 forces large file support
and we cannot override the alrewady defined typedef long off_t.
Define our own type sql_off_t which is long long on mingw32, and off_t on all other systems.