Fix some compile warnings