Sqlite cross-platform fixes.