curl: add support for mbedtls