fixes for clang and clang++ warnings