Properly emulate opengl32.dll for both win32 and win64

The previous commit didn't properly emulate opengl32.dll for win32 builds due to calling convention issues.

This one fixes that and also causes the windows build to more closely emulate opengl32.dll for win32 and win64.