MFC: revs. 1.19-1.21: support targeting FreeBSD 7 (and cleanups).
MFC: revs. 1.19-1.21: support targeting FreeBSD 7 (and cleanups).

jrobhoward/SCADAbase,jrobhoward/SCADAbase,jrobhoward/SCADAbase,jrobhoward/SCADAbase,jrobhoward/SCADAbase,jrobhoward/SCADAbase,jrobhoward/SCADAbase,jrobhoward/SCADAbase,jrobhoward/SCADAbase,jrobhoward/SCADAbase,jrobhoward/SCADAbase