First you can link the LibXL statically without using DLL.
If you use a DLL please place it in your app folder. Windows will start to search DLL from your app folder at first. And only after that it will search the directories that are listed in the PATH environment variable.
https://learn.microsoft.com/en-us/windows/win32/dlls/dynamic-link-library-search-order