LoadLibraryW/AddDllDirectory erros when building

I’m trying to use LoadLibraryW (#include “libloaderapi.h”) but when I build the project I’m getting 24 errors in Visual Studio (image bellow). I also tried to switch to AddDllDirectory but I’m getting the same errors. Are we unable to use those inside UE?