Fixes

Based on errors and warnings of Clang/LLVM compiler.