Only use EPROTO if it's available.

This unbreaks the build on OpenBSD which lacks EPROTO.
Merge pull request #78 from jasperla/eproto

Only use EPROTO if it's available.