Fix build warnings.

This is more consistent with the rest of torchcwrap.