Fix #277, add socket.h to interfaces on darwin

If `struct sockaddr` is not declared from an include of `net/if.h`.