fix few GCC/LLVM warnings