add conditions for mac os

To get cgsee to work on mac, some cases had to be added in glformat.cpp and gpuquery.cpp