Handle platforms without getprotobyname