fix minor bugs with OpenCL when not available