ocl: fix build on Mac