tools: fix warnings from Ubuntu strict compiler.