Added initial first stab at the port of the code from VC to Ansi ISO C++ for Linux.