[TOOLS] Fix to build on Mac OSX

Signed-off-by: Ann Boddington <annbod01@gmail.com>
Signed-off-by: Anup Patel <anup@brainfault.org>