explicitly link in pthread on Linux/MacOSX
Merge pull request #20 from floe/cmake_fix

explicitly link in pthread on Linux/MacOSX