bugfix: missing __global qualifiers

It leads implicit address space qualification to __private, but what
we intend is reference to __global address space.