Improve configure script checking of fcntl, tcgetattr, tcsetattr.