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
yes, because the include dir is ./src/ not ./src/win
and without the change, getopt.h cannot be found :)