OpenCL: add support for buffer allocation/release