sqlite: bump to latest and shrink build time to 10sec

sqlite uses one huge C file which contains everything.
this causes compilation times to explode when optimization is used.
additionally it inhibits parallel builds.

http://devsonacid.wordpress.com/2013/09/25/sqlites-anal-gamation

using -O0 explicitly, build time is reduced from more than 2 minutes to
10 seconds. since sqlite is only used for stuff like svn or tcl,
performance doesn't matter at all.

i really don't want to waste my time waiting for this piece of shit
to compile.

the here-doc makefile is used so we dont have to compile the huge
blob twice for PIC and without PIC, we just compile it once with
-fPIC and use that for static and dynamic libs.
svn: bump to latest
tcl: build with user supplied CFLAGS