Update api.jl

remove unix only macro for libopencl, need to test across platforms