Fix generation of redundant typedefs.
Start porting the GL dispatch code to win32.

It now builds successfully builds a .dll file.  Not that it's usable
or anything yet.
Port tests directory to win32.