Fix the TextureMapper build for non-Qt ports. Qt debug builds