generator: fix loading of wglGetProcAddress