Fix tools compile (nw)