[PATCH] cleanup some compile warnings