python: compatibility fix for libressl

the ssl module was not built due to lack of RAND_egd() in libressl.
noticed when trying to build firefox, which failed as its bogus
python virtualenv build system somehow accesses that functionality.
patch taken from void linux, which in turn seems to have taken it
from openbsd.