src: fix clang errors