clang build warning fixes