openCL compile and bug fixes