Modified RESGEN Makefile to provide for minGW not handling -lc flag, fixed bug in RESGEN.cpp which reports failure even when successful