sys/socket.h: Handle default protocol requests in socket()
As per SUSv2:
Specifying a protocol of 0 causes socket() to use an unspecified default protocol appropriate for the requested socket type.
This seems to be unhandled in relibc. The networking code of OpenTTD depends on this behaviour.