Eliminate many compiler warnings from clang