build warning fixes