Fix forkpty() for FreeBSD 10.