#include "support/systemcall.h"
#ifdef __APPLE__
+#include "debug.h"
#include <ApplicationServices/ApplicationServices.h>
+using std::endl;
#endif
#if defined(_WIN32) || (defined(__CYGWIN__) && defined(X_DISPLAY_MISSING))
#include "windows.h"
+#ifdef max
+#undef max
+#endif
+#ifdef min
+#undef min
+#endif
#include "support/os.h"
#include "support/package.h"
#include "support/path.h"