Only use EPROTO if it's available.

This unbreaks the build on OpenBSD which lacks EPROTO.