Fix C++ compiler errors in main-win.c.

Add required casts.

Note that I can't fix any of the other main-*.c.
Merge branch 'working' of https://github.com/levind/NPPAngband into working