fix a couple warnings in that show up with g++