As long as you have "win32" it will never work, thats Windows COM call convention.
The function pointer returned by glgetprocaddress is a plain C function pointer. I can't find any connection with COM. On the Linux side, definitely not,
There is glXGetProcAddressARB on Linux.
For the mac, check http://developer.apple.com/qa/qa2001/qa1188.html, they're talkinga bout aglGetProcAddress.
As far as I can tell it's just a matter of picking the right one depending on the platform.
EDIT:
In fact that's exactly what glew does. Lookup the definition of glewGetProcAddress in glew.c.
It's a define so it can't be exported, but get inspiration from that to write a function that does just the same and you're basically done.