Solves problems with different shells having differntly buggy parsers (and the standard probably allowing random behaviour). Should fix bin/25938
Build mksyntax directly from mksyntax.c so that the -DTARGET_CHAR=xxx is applied when it is build. OTOH mksyntax is broken as it tries to determine properties of the target system by running code on the build system.