[build] added pthreads library to cmakelists.txt;