opencl: fix a bunch of opencl compilation error with pocl