for solved libtool issue and add fix for tests on big-endian arches looks good to espie@ requested, bulk-tested and ok by bernd@
http://www.sqlite.org/changes.html for the details tcl adjustments and bulk build testing by bernd@, thanks! ok bernd@, steven@, martynas@
- merge espie's patches - fix apps such as p5-DBD-SQLite, by adding weak pthread functions. also include some bug fixes from kurt@. the work has been done by kurt@, and espie@. thanks! ok kurt@, espie@, bernd@