lib/texpect: portability fix, include signal.h