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
Merge pull request #1 from cbielow/fix-VS10

fixed include path to getopt.h; removed lgamma() function (VS10 does not support it and it's not required); fixed some compile errors; fixed some warnings