fix C compiler warnings