Add -lpthread to avoid linking error.

Linking proxies fail when built on Ubuntu 13.10 or Debian sid.
So we add "linkflags = '-lpthread'" to wscript for now.
Merge pull request #824 from gwtnb/lpthread_proxy

Add -lpthread to avoid linking error.