Fix C compile warnings