added platform to ocl struct
fixed bug in ocl struct