Add Linux target to project using g++ and Makefiles

Broken Linux build system created. Also, several fixes to program code so 
that it works in both platforms.