compiled on mac and added preprocessor directives to ignore system(pause)