Merge pull request #1 from wesnoth/master

Test
Fixing a typo (error).
Correcting some errors and restoring the standalone version.

Standalone version is managed by the compile flag YAMG_STANDALONE.
This flag is defined only in a separate target not present in the Wesnoth project,
so it can't interfere with Wesnoth builds.
So please, don't edit the sections within the #ifdef YAMG_STANDALONE.
Merge pull request #57 from Pyrophorus/wesnoth-yamg

Wesnoth yamg