fixed build problem with threads on SmartOS
Merge pull request #432 from socketwiz/master

build error on SmartOS