fix target name collision handling for execs/libs