fix up misc compiler warnings