Initial import of Dave's code.
Change to UNIX style linefeeds, expand tabs to four (4) characters.
Applied astyle formatting changes.
Made it compile on Linux, still with many warnings.
GCC warning free
Merge the initial 4G support.
Compile errors with MSVC fixed.