opencl mode fixes when building with mac integration