kenwood/k3.c: Avoid possible buffer overrun

Running cppcheck found that the string length given to strncpy was one
too large for the buffer.
rigctl.c/rotctl.c: fix closing brace placement

A closing brace was improperly placed before a pair of CPP #endif
directives rather than between them.  Caught by a cppcheck audit.
Fix a warning message.

A buffer was shorter than a max length being copied into it.
Added option to not use VFO XCHG command when setting split parameters.

With Icom rigs that use MAIN?SUB VFOs there is a trade off when
setting the mode or frequency of the "other" VFO. Untill now Hamlib
uses the XCHG VFO command to address the "other" VFO. This has some
advantages, particularly it preserves the selected VFO and it
preserves memory mode of either VFO. The disadvantage is that any
split command causes the Rx to glitch when the VFO/MEMs are exchanged.

I have added a config parameter for Icom rigs called "no_xchg" which
forces the direct addressing of VFOs to set split mode/frequency. It
is a boolean option with a default of "0" (false) which equates to
prior behaviour. Setting it to "1" (true) will make the backend use
change VFO commands to set the "other" VFO. This means that TX on
"SUB" in split is assumed, that both are in VFO mode (not MEM), and
set/get split functions will leave the MAIN VFO selected.
Fix a buffer overflow in the Windows termios emulation.

The  YACK() macro  generates  a  message of  variable  length due  the
__FILE__ string  and a  message returned  by MS  FormatMessage() being
inserted  into a  fixed length  string  buffer. I  have increased  the
buffer length to 1024 bytes and used snprintf to avoid overflows.

It looks like the whole YACK() macro should do nothing unless DEBUG is
defined so  there is probably  a small performance  gain to be  had by
doing that also. I have left that to the experts to decide.
Fix pkg-config generation.

The NET_LIBS  configuration variable  was not  being exapanded  in the
pkgpconfig template file. This caused  static builds against hamlib to
fail on Windows because the WinSock library was not referenced.
configure.ac: Fix a warning message.

Merge branch 'fix_k3' of git://git.code.sf.net/u/bsomervi/hamlib
Add option to not use VFO XCHG command for Icom

Added option to not use VFO XCHG command when setting split
parameters.

Merge branch 'change_icom_sub_access' of git://git.code.sf.net/u/bsomervi/hamlib
Fix a buffer overflow in the Windows termios emulation.

Merge branch 'fix_windows_termios_segv' of git://git.code.sf.net/u/bsomervi/hamlib
Fix pkg-config generation on Windows

Merge branch 'fix_pkg-config' of git://git.code.sf.net/u/bsomervi/hamlib