fix build error under FreeBSD 7.x.