extended flags for mouse events to work on windows

As a comment from a user on msdn:

http://msdn.microsoft.com/en-us/library/windows/desktop/ms685035(v=vs.85).aspx

There needs to be the extended flag as part of the set modes in order for mouse events to work on windows.  Without this, mouse events do not work.

Please take a look and let me know what you think