As mentioned by @agl over here. You need to apply this change "&& !defined(OPENSSL_WINDOWS)" to every instance where the compound condition "!defined(OPENSSL_NO_ASM) && defined(GNUC) && defined(x86_64)" causes a compiler error.