Fix issues with popcount() on OpenCL 1.1 devices