[PATCH 1/4] tools: Refactor mkimage linking with OpenSSL