Allow compilation for targets without EGD (ie LibreSSL)

Quick fix [(wget-style)](https://github.com/gentoo/libressl/blob/master/net-misc
/wget/files/wget-1.14-libressl.patch) to enable compilation with LibreSSL.

Compiles and works under FreeBSD 10.0 / LibreSSL 2.0.3

PS: I don't know if I went against any coding practice because I couldn't find a
 CONTRIBUTING file nor there is anything on the README.. so if I did.. sorry :(