[PATCH] tools: mkimage: fix build with recent LibreSSL