SQLite Update

This is an update to SQLite version and a number of other tweaks. It requires an update to the thirdparty submodule as well (present as the branch feature-sqlite_3_8_2).

This still needs testing to ensure everything compiles correctly on all platforms, and is awaiting a dictionary update to revOpenDatabase().

Also note it updates the Mac SDK to 10.5 and min-deployment to 10.5 (required by the newer version of SQLite).