added test code for win-32 gl context
finish win32 porting