clean C code of some compile-time warnings