Add -lpthread to avoid linking error.

Linking proxies fail when build on Ubuntu 13.10 or Debian sid.
So we add "linkflags = "-lpthread'" to wscript for now.
This may be a bad idea, so we have to seek another solution.