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

admittedly this is a sucky workaround, but it lets POE install on android, so.. :)