Initialize struct msghdr by hand

Avoids C90 warnings.
Avoid warnings
Fix signed and unsigned compare