BACKENDS: fix FTBFS on GNU Hurd by replacing MAXHOSTNAMELEN with NI_MAXHOST

Bug-ScummVM: https://sourceforge.net/tracker/?func=detail&atid=418820&aid=3614268&group_id=37116

See more in similar http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=387665
GRAPHICS: Allow arbitrary input sizes for thumbnail scaling.

Instead of a fixed 1/2 or 1/4 scaling we do a two step scaling now:
1) Scale image to width < 160*2 && height < [100,120]*2 with 1/4 or 1/2
   nearest-neighbor.
2) Use a bilinear scaler to scale aspect preserving to 160x[100,120]

This fixes bug #3614568 "GRAPHICS: Odd thumbnail sizes crash".
WINTERMUTE: Remove fixedPath snippet

fixedPath is apparently never used anywhere else in the class and this
loop can cause the next one to never get to run.
COMMON: Enforce formatting guidelines a bit more in util.h.
DEVTOOLS: Update create_mortdat to the latest version English translation
MORTEVIELLE: Fix compilation on WinCE.

The LANG_* symbols were colliding with defined symbols in the WinCE
system headers. Renamed to avoid this.
NEVERHOOD: Silence noisy compiler warning.

This is due to NULL being used. Switching to nullptr which is equivalent
i.e. 0 should silence this.
MORTEVIELLE: Another fix for WinCE compilation.

S_OK is a system define in the WinCE toolchain library headers, so this
conflicts. Renamed to S_OKAY in the engine code to avoid this.
WINTERMUTE: Let engine know both gameid and language of target as well as targetname.
WINTERMUTE: Add detection for both english and spanish James Peris Demo.
WINTERMUTE: Add hack to allow language-selection in James Peris demo.
MORTEVIELLE: Fix two GCC compiler warnings.

The first is due to a variable set but never used i.e. destSurface, but
I think this call is still needed to lock the area being copied, hence
have removed the variable, but not the call.

The second was a real bug in the type of the print format string used
for savegame naming. slot is a number, not a string and can vary from 0
to 999, hence the 3 digit fixed size with zero padded prefix.
TSAGE: Bugfixes for giving reader to Miranda
TSAGE: R2R fixes for reading infodisk
COMMON: Move definition of math constants to scummsys header.

This should have no effect on common/math.h as scummsys is included at
the top anyway, but this will fix compilation on some toolchains when
strict ANSI language compliance is enabled i.e. -std=c++11, rather than
-std=gnu11.

This causes an issue as a side effect is to set a guard which disables
various non-standard defines in the system headers i.e. the M_PI and
M_SQRT1_2 constant definitions in the MinGW x86_64 toolchain on
buildbot.

By moving this into scummsys.h after the point of system math.h
inclusion, we can ensure that M_PI etc. are always present.
WINTERMUTE: Add detection for James Peris (Full Version)
Merge pull request #358 from tobiatesan/fix_wme_base_disk

WINTERMUTE: Remove fixedPath snippet
WINTERMUTE: Introduce TransformStruct and FloatPoint; add operators to Point32
WINTERMUTE: Introduce TransformTools
WINTERMUTE: Refactor some bits to use TransformStruct