fixes to compile warnings under clang.