Make this compile on 64bit systems.  It likely isn't correct, but that can be sorted out later.
Make this compile on 64bit systems.  It likely isn't correct, but that can
be sorted out later.

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