[dist] also check pthread library
[dist] update configure and config.h.in