fix cg debug build