fix the problem of compile with C code