fixed some clang++ warnings