compilation fix for qtosg (thanks to ahundt)