ftp/ftpcopy: fix build on ARM64 and refresh
With GCC14 now being pulled in on non-i386 non-amd64 platforms,
the compiler is stricter about prototypes.
I think all our base compilers should be good enough, but some
platforms don't seem to allow regparm, so patch that out.