compiling with mixture of c and c++ working