Fix OpenSSL compilation issues for 5.3
Fix GMP compilation issues for 5.3