Config.x86-64-linux => Config.x86_64-linux.

Everything else uses a dash.
Use openpty() for run-program on FreeBSD.

Opening /dev/ptmx doesn't work for me on the default installation.