OpenCL: fix for the restriction on pointers to functions.

Patch from Anastasia Stulova!