configure: fix check for mbedtls