Fixed some compile warnings - makes gcc happy