Lots of clang warning fixes