Workaround for systems without getprotobyn* (e.g. android)
Merge pull request #17 from Hugmeir/master

Workaround for systems without getprotobyn* (e.g. android)