tools: fix two warnings produced by gcc-4.8.

Change-Id: Ia27dd0b84b4a0e429f005ba4c0a5a5479dfc6769