enable C code to be compiled with g++