changed main.cpp -> reduced linux <-> windows code