fix some more compiler warnings found by clang