Upgraded to Tcl-LMDB 0.4.0, and fix to link statically