expect: fix private header location detection.

* Reported upstream: https://sourceforge.net/p/expect/patches/17/
* Add autotools dependencies for regenerating configure script.

Closes #173.