Changed from using std:: to "using namespace std" directive. std::exit(...) is clang but not MinGW.