fix CPP detection of Solaris in NCG