in common.h, when compiling on my platform from the visual studio solution, the #ifndef DONT_INCLUDE_SDL block, which #includes the SDL headers needs to go BEFORE the #include <curses.h>, so that underscore underscore WIN32 underscore underscore gets defined, otherwise curses.h doesn't define a large number of functions, resulting in thousands of compile errors.