change wrapC to conform with new torch ffi