1. for environment variable, we should use exists function, not has
2. add cpp compiler for mingw compiler support in windows.