Autotuning requires pthreads
Autotuning requires pthreads, but the targets are not automatically linked with against it. I assume the pthreads option is set in the opts file, but I think it would be cleaner to let cmake use it automatically, or disable these tests if pthread is not found (not sure if that is possible).