Fixed #1117 enforce new pthreads version