tools: Honour the O= flag when tool build called from a higher Makefile