Handle platforms without getprotobyname
Merge pull request #2 from Hugmeir/master

Handle platforms without getprotobyname