waf: try to simplify pthread check

Hopefully this stuff was cargo culted for decades and not really useful
anymore. Linking to w32 socket library is a bit shady anyway, I am told by
wm4 this was used in mplayer's network code.