added pthread to cmake
Merge pull request #5 from xeroc/master

added pthread to cmake