Make the code compile in octave on OSX