fixed cmake file to work on apple and linux. readded cgame.cpp