fixed include path to getopt.h; removed lgamma() function (VS10 does not...

... support it- and its not required); fixed some compile errors; fixed some warnings
Are you sure the "win" is correct? Since I moved "getopt.c" into the "win" directory, too.