Remove artefacts from the pre "auto-build-minishogi" era.
Fix rules for shipped generated files not to depend on built stuff.

Spotted by Chen Chen.  This allows to pass "make distcheck" at last.
Always include config.h first as recommended by autotools.

For those platforms where "const" and other things are redefined,
so things work consistently across all source files.