Changed compilation for perf test for pthreads due to linux needed