Thanks JOLESEN,
Your workaround works great.
My project compiles fine now, but I still get some errors. I get the following linker error when building:
Compiling...
NIC Control.cpp
Linking...
NIC Control.obj : error LNK2001: unresolved external symbol __imp__SetupDiCallClassInstaller@12
NIC...