minor changes in winmain.cpp