Unregister window class when shutting down GLimp.

This is a fix ported over from MP again.