Better fix for mouse capture issues under Win32

- This fix is a lot cleaner and preventing all issues described in
  issue #437 without caveats or side effects.
- This also restores system shortcuts like Alt+F4 or Alt+Space.