lib: texpect. Fix the build on Solaris.