Fix C compiler warnings