avoid memcpy of overlapping palette memory
initialize palette before use

fixes a multitude of warnings of the form:
Conditional jump or move depends on uninitialised value(s)
  at 0x62005E9: ??? (in /usr/lib64/libSDL-1.2.so.0.11.4)
  by 0x62007DE: SDL_MapRGBA (in /usr/lib64/libSDL-1.2.so.0.11.4)
  by 0x5FC2A6D: vlineColor (in /usr/lib64/libSDL_gfx.so.13.9.1)
  by 0x5FC358F: lineColor (in /usr/lib64/libSDL_gfx.so.13.9.1)
  by 0x75FB7E: OpenXcom::Surface::drawLine(short, short, short, short, unsigned char) (Surface.cpp:558)
  by 0x83D576: OpenXcom::Cursor::draw() (Cursor.cpp:93)
  by 0x7427B8: OpenXcom::State::setPalette(SDL_Color*, int, int, bool) (State.cpp:358)
  by 0x83FE4B: OpenXcom::StartState::StartState(OpenXcom::Game*) (StartState.cpp:63)
  by 0x631318: main (main.cpp:64)
Improved day/hour display.
Fixed modded Ufopaedia sorting.
fix extremely low fire speed shotguns
fix scale switching issues
Merge remote-tracking branch 'upstream/master' into valgrind_fixes
maintain aspect on by default.
semi-fix window resizing during intro

works fine in software modes, but opengl seems to clear the screen on
resize, and FLC only updates the areas of the screen that change.
add some UFOExtender options

Stun Fest available via ruleset tweak
add some UFOExtender options:

no alien freakout messages
add some UFOExtender options:

Alien bleeding
Cleaning up installer
Cleaning up includes.

Conflicts:
	src/Engine/Flc.cpp
More mods more
How did that get there
try to make aliens a little more aggressive

weigh the escape decision lower if we're above half TUs, or if we're
levelling a charge.
turrets for living weapons
Fixed some Ufopaedia damage type issues.
ensure startup palette is fully initialized

resolves the following valgrind warnings:
Conditional jump or move depends on uninitialised value(s)
   at 0x594C2F2: bcmp (mc_replace_strmem.c:930)
   by 0x62046B4: ??? (in /usr/lib64/libSDL-1.2.so.0.11.4)
   by 0x6204D82: ??? (in /usr/lib64/libSDL-1.2.so.0.11.4)
   by 0x6205928: SDL_LowerBlit (in /usr/lib64/libSDL-1.2.so.0.11.4)
   by 0x6205B86: SDL_UpperBlit (in /usr/lib64/libSDL-1.2.so.0.11.4)
   by 0x76161A: OpenXcom::Surface::blit(OpenXcom::Surface*) (Surface.cpp:517)
   by 0x831BF6: OpenXcom::NumberText::draw() (NumberText.cpp:260)
   by 0x7615A3: OpenXcom::Surface::blit(OpenXcom::Surface*) (Surface.cpp:503)
   by 0x835F4B: OpenXcom::FpsCounter::draw() (FpsCounter.cpp:119)
   by 0x744387: OpenXcom::State::setPalette(SDL_Color*, int, int, bool) (State.cpp:361)
   by 0x841C1F: OpenXcom::StartState::StartState(OpenXcom::Game*) (StartState.cpp:63)
   by 0x632978: main (main.cpp:65)
 Uninitialised value was created by a stack allocation
   at 0x841B34: OpenXcom::StartState::StartState(OpenXcom::Game*) (StartState.cpp:43)

Conditional jump or move depends on uninitialised value(s)
   at 0x594C2F2: bcmp (mc_replace_strmem.c:930)
   by 0x62046B4: ??? (in /usr/lib64/libSDL-1.2.so.0.11.4)
   by 0x6204729: ??? (in /usr/lib64/libSDL-1.2.so.0.11.4)
   by 0x6204DCB: ??? (in /usr/lib64/libSDL-1.2.so.0.11.4)
   by 0x6205928: SDL_LowerBlit (in /usr/lib64/libSDL-1.2.so.0.11.4)
   by 0x6205B86: SDL_UpperBlit (in /usr/lib64/libSDL-1.2.so.0.11.4)
   by 0x5FCCEA6: characterColor (in /usr/lib64/libSDL_gfx.so.13.9.1)
   by 0x5FCCFF4: stringColor (in /usr/lib64/libSDL_gfx.so.13.9.1)
   by 0x7618F7: OpenXcom::Surface::drawString(short, short, char const*, unsigned char) (Surface.cpp:608)
   by 0x841C61: OpenXcom::StartState::StartState(OpenXcom::Game*) (StartState.cpp:68)
   by 0x632978: main (main.cpp:65)
 Uninitialised value was created by a stack allocation
   at 0x841B34: OpenXcom::StartState::StartState(OpenXcom::Game*) (StartState.cpp:43)