Fix: improve getpeername to actually works

This also adds a test in the test suite for our getpeername() wrapper.

Signed-off-by: David Goulet <dgoulet@ev0ke.net>