Windows implementation of qt_waitforinput. Patch #645 (BM)
Avoid recursion in Windows variant of qt_waitforinput. Patch #642 by Thomas Bleher.