fix automatic tool generation when cross-compiling overlaid app