Compiler warnings

here are a handful of changes to silence some of the compile warnings