use global variable __local_name instead of macro ARGV0 in libraries

so that the binary name set into __local_name will be used