Fix support for older versions of Matlab.