moved from WNDCLASS to WNDCLASSEX

I will need extended styles in the future
return msg.wParam on WM_QUIT (static cast)
moving from GetMessage() to PeekMessage()

This is needed because GetMessage() is blocking, where PeekMessage() is
not, letting us perform rendering even when no Messages are available in
the queue