fix some warnings when compiler c file with c++11