Added Linux section in CMakeLists.txt, ifdef'd out some WIN32 stuff, removed compile warnings