Enable opencl wihtout pthreads.

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>