Fixed CMakeLists.txt to compile propperly accross platforms.