fix some compile warnings with 2.6.32