Modify calling convention to make it work from both C++ and C#.