Fix for perfthread_test.cpp