compiler warning fixes