Fix a strict-aliasing with type-punning

Fixes #880

See :
https://stackoverflow.com/questions/1429645/how-to-cast-sockaddr-storage-and-avoid-breaking-strict-aliasing-rules/1432959#1432959