Why not just make a compiled DLL with this library and export some C functions?