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