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