build: fix tools build dependencies