Windows portability fixes.

Different toolchains/versions provide different symbols.
Use _snwprintf instead of swprintf since the latter changed signature.
Claim we need at least Windows XP support to get GetFileSizeEx.

Tested by Andrew Molyneux, Alex Sandro, and Christoph Becker.
2 files changed