fix few warnings and clang++ compile clean