fix cpu version of findCompoundPairs, in order to fix Mac OSX OpenCL compound issues