common-opencl.c: Make it use its own helper functions w/ available,
plus a bunch of whitespace fixes.