Modernise; ISOify, use __FBSDID(), use headers instead of hand-declaring. Fix easy warnings.
Modernise; ISOify, use __FBSDID(), use headers instead of hand-declaring.
Fix easy warnings.

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