If there are still people needing this help (I did), here is THE fix:
start up cygwin setup.exe.
search for check. You will (should) find one in Devel. It is:
check: unit test framework for C
Install that and your build problems for this will go away.