expect: fix build on freebsd