better handling of statically linked binaries