wres code cleanup
use standard iso c file io routines for logging
correct prototypes for 64-bit hosts
correct prototypes
use size_t type parameter for memory allocation function
use standard iso file io functions for log file
don't use Windows BOOL type for internal processing, it should be used only for WIN API
correct single-byte encoded string to unicode conversion for 16-bit Windows
fix mistake in inverse condition for map file option
enable to use any integral type variable for based pointer segment variable
there is not reason to restrict type of variable defined segment to __segment type
now it follows C++ compiler
correct mistake in wr project
Re-apply change #37544 from Open Watcom site

Replaced int86x() call with 5 instructions of inline assembly in order to save over 1KB for DOS executables which use spawn/exec functions (and do not themselves use int86()/int86x()).
correct cast in macro definition
correct stupid typo
cleanup wres project
use bool type for boolean type variables/parameters
changes in another projects required after wres project type changes
fix pmake build for 64-bit hosts
correct prototype
cleanup wres code to use bool return value where it is possible
update wres public interface to reflect latest changes