Do a saner job in OpenCL initialization.
Use JtR wrappers for memory handling.