fix compilation problem : -lpthread missing.
Merge remote-tracking branch 'upstream/master'