Fixes exit command and cmake_cxx_flags.