map2preview: handle unknown tilesets

Signed-off-by: Giel van Schijndel <me@mortis.eu>
Prevent out-of-bounds array access

GCC actually gives a warning for this.

Signed-off-by: Giel van Schijndel <me@mortis.eu>
Prevent updating autorevision.h's timestamp when its contents haven't changed

Signed-off-by: Giel van Schijndel <me@mortis.eu>
Merge branch 'build-problems' into bugfixes

Signed-off-by: Giel van Schijndel <me@mortis.eu>
stats: Actually save stats, so players aren't stuck with the pacifier forever.

Stats were only saved in multiGameShutdown(), which apparently never gets called if closing the game.
stats: Use actual number of games played when drawing medals.

Players are no longer stuck with the pacifier forever.
stats: Prevent double-counting of wins/losses.

Fixes ticket:3855.
Do not rely on the default Designated Requirements.

Also, sign the frameworks earlier.
Emit warnings on improperly / unsigned frameworks.
Update the default layout for CS-ID.xcconfig.
Make configure fail if it doesn't find flex.

Fixes #3859.
Merge branch 'bugfixes'

* bugfixes:
  Make configure fail if it doesn't find flex.
  Update the default layout for CS-ID.xcconfig.
  Emit warnings on improperly / unsigned frameworks.
  Do not rely on the default Designated Requirements.
  stats: Prevent double-counting of wins/losses.
  stats: Use actual number of games played when drawing medals.
  stats: Actually save stats, so players aren't stuck with the pacifier forever.
  Prevent updating autorevision.h's timestamp when its contents haven't changed
  Prevent out-of-bounds array access
  map2preview: handle unknown tilesets

Conflicts:
	src/multiint.cpp