Fix define declaration in tools