fix matlab vs octave compile stuff for matlab pyramid API