Problem when trying to build with Intel compiler
**Describe the bug**
[log.txt](https://github.com/xmrig/xmrig/files/15269163/log.txt)

**To Reproduce**

Added the following code in ./cmake/flags.cmake:

```
elseif (CMAKE_CXX_COMPILER_ID MATCHES Intel)

    set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -Ofast -mkl -march=native -mfma -Xclang -target-feature -Xclang +vaes")
    set(CMAKE_C_FLAGS_RELEASE "${CMAKE_C_FLAGS_RELEASE} -Ofast -mkl -march=native -mfma -Xclang -target-feature -Xclang +vaes")

    set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -Ofast -mkl -march=native -mfma -Xclang -target-feature -Xclang +vaes")
    set(CMAKE_CXX_FLAGS_RELEASE "${CMAKE_CXX_FLAGS_RELEASE} -Ofast -mkl -march=native -mfma -Xclang -target-feature -Xclang +vaes")
```

and use the following compile command:
`cmake .. -DCMAKE_C_COMPILER=icx -DCMAKE_CXX_COMPILER=icpx`

**Expected behavior**
Should compile successfully

**Required data**
 - XMRig 6.21.3
 - OS: Ubuntu2404
