multiple lint and compiler warning fixes