Integrate mbedTLS into Keil RTX project - XMC4700

I am trying to use the mbedTLS library in my project which is based on Keil RTX running on an Infineon XMC4700.

I am currently publishing data to an MQTT broker over TCP on port 1883 (unsecured) using the network component.

I opened the ssl_client1 example from the mbedTLS library version 3.1.0 and tried to use the same functions in my project. However, after adding the mbedTLS package I get the following error:

#error "This module only works on Unix and Windows, see MBEDTLS_NET_C in mbedtls_config.h"

I learned that net_sockets.c from the library is not useful and I've noticed that the ssl_client1 example uses the net_sockets.c from the following path:

\Arm\Packs\ARM\mbedTLS\3.1.0\MDK\library\mw_network

Which is adapted to use the network component that I already use in my project.

I didn't find out how to use that instead of the default one located at:

\Arm\Packs\ARM\mbedTLS\3.1.0\library

On the ssl_client1 example I noticed it is somehow included under the Security package along with the entropy_poll_hw.c:

While on my project they do not appear.

How can I include them like in the example and be able to use the functions from the proper net_sockets.c?

Anyway I don't want to use the package in the future, but I want to include the necessary files into my project or compile it into a library (which I am not familiar with yet).

Thanks!