Few more batch files to automate things more
VC8: tapi.h requires WIN32 to be defined as int

Visual C++ 2005 compatibility: tapi.h requires WIN32 to be defined as an
integer expression. If it is defined without any value (as it was
previously) you get a C1017 error (invalid integer constant expression)
VC8: un-deprecate sprintf, etc

Visual C++ 2005 compatibility: sprintf, strcpy and other potentially
unsafe functions are marked as deprecated as of Visual C++ 2005
(snprintf, strncpy, etc are the modern safer replacements). These
functions are used quite a lot at the moment and that probably wont
change anytime soon. So we'll just un-deprecate them to make all the
C4996 warnings go away.
VC8: Don't declare sys_errlist

Visual C++ 2005 compatibility: Don't declare sys_errlist (it doesn't
like it). Visual C++ 7.1 and earlier don't seem to care if its declared
or not so we just won't declare it all when building for Windows.
VC8: Don't pass invalid handles to _read

Visual C++ 2005 compatibility: _read in the version 8 C Runtime Library
will no longer accept an invalid file handle
Update build scripts

mkdist now moves manifest files into dist directory, mkntd now works
without tee and will automatically create the ntd subdirectory if it
doesn't exist
VC8: Fix for-loop scoping

Fix up code that was relying on broken scope rules in Visual C++ 6 and
earlier (7.x seems to turn a blind eye to such code but 8.0 gives a
compile error).
VC8: Fix problems around wchar_t

Visual C++ 2005 compatibility: whcar_t is now a built-in type rather
than a typedef for an unsigned short int.

The KUI makefile will now detect the compiler version being used and
adjust flags accordingly so there shouldn't be anymore deprecated or
unknown option warnings anymore.
VC8: Detect compiler being used and adjust cflags

Visual C++ 2005 compatibility: A number of compiler options have been
deprecated, renamed or removed. The makefile should now detect the
compiler version being used and adjust the compiler flags accordingly
(eg, /G5 will only be used on Visual C++ 2003 and earlier)
Visual C++ 2003 and 2005 are now supported