Callback support for OpenCL extension pragmas.

Patch from Rami Ylimäki and Mikael Lepistö!