Add socket credentials using SO_PEERCRED

Pull request for issue #6