fix some C compiler warnings