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.
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
WINTERMUTE: Bilinear scaling.

Refactor scale(), factor out actual mapping algorithm, add bilinear
scaling
WINTERMUTE: Add cast op Common::Rect => Rect32
WINTERMUTE: Add rotation

Add actual rotation code, make ticket-system transformStruct-aware
WINTERMUTE: Removed useless argument from rotate()
WINTERMUTE: Move if() outside transform loop
WINTERMUTE: Rename pixel copy functions
WINTERMUTE: Partial fix for mirrored sprites

Still weird with rotated + mirrored + scaled sprites. Offset.
WINTERMUTE: Swap flip bits
WINTERMUTE: Force angle normalization

This fixes the issues in J.U.L.I.A.
WINTERMUTE: Fix alpha bug in engines/wintermute/base/gfx/osystem/base_surface_osystem.cpp

This fixes the "TV static" bug in J.U.L.I.A.
WINTERMUTE: *transform as pointer in transform_tools
WINTERMUTE: Rename rotate() -> rotoscale() for consistency