Adapted to build and run in the FreeBSD...