Add support for FreeBSD. Improve support for HP-UX and IRIX 6.