OCL: fix runtime for 32-bit builds

Main changes in the first commit