Small changes to silence build warnings

I tend to build my projects with a lot of additional warnings turned on in the build settings. These small changes don't alter functionality at all, but fix the causes of three compiler warnings.