gl: use ctypes instead of win32ui for displaying a message box. closes #1723