improve pthread support
Merge branch 'master' of github.com:achille-roussel/nce