Fixed a compilation error in C wrappers