Placing workaround so newff2 will not throw warning that we are adding new attributes to it. For a future improvement, check how to do it properly.
Replacing all mxGetProperty calls by mxGetField.