Compile with MSVC

Move variable declarations to beginning of block. Use alloca instead of
dynamically sized arrays.

Both Win32+WGL and Win32+EGL code.
Win32 events