I'm going to work on it this weekend, but I am going to switch all development to C++.
I finally figured out why SDL_image would not install and was able to get Ninja Warrior to install under Cygwin. NW is not actually dependent on -lpthread, so if you compile it under Cygwin, delete that from the Makefile.