When the software on the other side of the pty closes the device,
the simulator would close and reopen its side but it is unneeded
because it can continue to call read() without doing anything special.
Some instructions were a copy and paste error, some did not link
to Hamlib. Compile all simulators with: make -C simulators check
or compile a single simulator replacing "check" with the name of
the simulator.
Fixed with:
perl -pe 's,// gcc.*\n,,' -i *.c
perl -pe 's,// On mingw.*\n,,' -i *.c