Fix openssl for 88f6281 and powerpc

Patch based on Synology's GPL source code