[libqb] [PATCH 2/5] Fix some issues found by clang