clang: bunch of warnings and 1 error fixed