misc compiler warning fixes