apply openssl-1 patch and fix up