Require pthreads for compilation with OpenCL support.