Fix DSO missing from command line by adding lpthread to linker
use CMAKE_THREAD_LIBS_INIT for unix environment so you can pass pthread library if needed
Merge pull request #113 from tymat/pthread

CMAKE_THREAD_LIBS for UNIX platform