Add MGF1 MD selection function (available in OpenSSL 1.0.1+)

This is needed to add MGF1 hash algorithm selection to the RSA PSS PR (#676)