Managed to get cout working from inside plugin. Need to wrap that in a debug check of some kind. Started correctly obtaining OpenCL platform and devices. Not sure how portable that code is