do not use EPROTO on platforms that do not have it
Merge pull request #501 from chazmcgarvey/conditional-eproto

do not use EPROTO on platforms that do not have it