a few fixes to NegLogInt_Fn suggested by Yukio
tried to make NegLogInt_Fn platform independent

thanks to Yukio Takeuchi for inspiration on this
fixed bug in SSgetoutput thanks to Xi He
Merge git://github.com/r4ss/r4ss

Ian Taylor's changes as of 2014-10-07