fixed pthread in Cmake