tools: mkimage: fix build with OpenSSL 1.1.x (FS#182)