Fixed a compilation error when building wrappers