It's actually not needed. The QZ complex decomposition can be obtained in Octave on real matrices by casting them to the complex type.