changed getPeerCred to support for FreeBSD. add getPeerEid for FreeBSD