Compiler warning fixes