compile fix from qmc2 (nw)