Fix compatibility issues with Octave 3.8: fix defunct and deprecated calls