Copy of git://codeaurora.org/platform/external/sqlite.git, with fixes for Mac OS X