changed getPeerCred and add getPeerEid to support FreeBSD

Hello.

getPeerCred was changed so that it might operate by FreeBSD. 
It desires to add getPeerEid so that GETPEEREID (3) can be used. 

http://www.freebsd.org/cgi/man.cgi?query=getpeereid

-------------------------------------
I am poor at English. 
Please allow, if a message has impoliteness.