hardcoded -lstdc++. Fixes builds on arches which don't have gcc in the
base system (aarch64 and i386) but may well also avoid some symbol
conflicts on all arches.
Patch autoconf/automake input files rather than generated files and
fix some inconsistent whitespace in port Makefile.
ok edd@.
(A proper fix would be to modify the build system to use c++ as the
linker rather than cc with hardcoded -lstdc++, as suggested in debian/TODO
from 2008).