I modified this file to work with Cygwin. #direct.h was being included. Here's the patch I made #if !defined(__CYGWIN__) #include #endif