fix cpp support problem