Using openNURBS lib in a cpp/c# mixed Grasshopper Component

I resolve this by using openNURBS as a static lib to include it into the cpp.dll.
To do this, I need to manually modify the opennurbs_public.h in the original library, due to the issue described here: