- 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@
some fringe cases, and passes all its regression tests now. okay robert@