LCMS and Libraw Support

I have just compiled Libraw with enabling LCMS2 on Win10. From the generated executables it works just fine now and it can profile well. However, I am looking for using it as a dll library in my C++ code, so when I linked the compiled Libraw to my visual studio project I don't seem to be able to apply profiles, just like LCMS is not supported in the API.

Could you please point out if I am missing something? shouldn't Libraw API sees LCMS after compilation ?