auto dection C/C++ and compile