Fixed warnings

I turned on additional compiler warnings and it brought these to my
attention.