enable compiling for Matlab and Octave