Check OpenCL version before calling enqueue_fill_buffer()

This adds a check for OpenCL version 1.2 before calling the
enqueue_fill_buffer() function in the fill() algorithm.