Add support for gethostbyaddr_r(3)

Signed-off-by: David Goulet <dgoulet@efficios.com>
Fix: add missing optlen assignement in connect

Signed-off-by: David Goulet <dgoulet@efficios.com>
Add getpeername(2) support

Signed-off-by: David Goulet <dgoulet@efficios.com>