Fix d2i_PrivateKey_ex() to work as documented