[PATCH] Fix --without-tty builds on BSD/MacOS X.