translating glew stuff to native JUCE