Fix building of tools automatically.