Make sendto() and accept() interfaces conform to POSIX,

This doesn't change the code's behavior and doesn't introduce new warnings, but avoids some when using those interfaces in the POSIX way

 * mark msg as const 
 * use *addrlen instead of addrlen, it's unused anyway