src/expect tweaks

- silence some warnings
- check a few more functions in the configure script

Change-Id: I1f3659ceff16e911d8b5ec88822d5b531535cde4