fixed Mac OS X build error (function 'lgamma' differs between Windows/UNIX)
fixed Mac OS X build error (function 'lgamma' differs between Windows/UNIX)

hendrikweisser/Fido,timosachsenberg/Fido,timosachsenberg/Fido,hendrikweisser/Fido